#include <sys/epoll.h>

#include "epoll.h"

int epoll_add(int epfd, int fd) {
  struct epoll_event event;
  event.events = EPOLLIN;
  event.data.fd = fd;
  epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event);
  return 0;
}

int epoll_del(int epfd, int fd) {
  struct epoll_event event;
  event.events = EPOLLIN;
  event.data.fd = fd;
  epoll_ctl(epfd, EPOLL_CTL_DEL, fd, &event);
  return 0;
}
